package cn.kn.triage.sys.controller;

import cn.kn.triage.common.model.R;
import cn.kn.triage.sys.service.LogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinzn
 * @create 2020-10-15 17:03
 */
@RestController
@RequestMapping("sys/log")
public class LogController {
    private final LogService logService;

    public LogController(LogService logService) {
        this.logService = logService;
    }

    @GetMapping
    public R findAll(){
        return logService.findAll();
    }
}
